import java.util.Scanner;

public class SSSSS {
    public static void main(String[] args) {
        int i;
        double[] s = new double[10];
        int y;
        double g = 0;
        Scanner k = new Scanner(System.in);
        for(i=0;i<s.length;i++) {
            System.out.println("输入第"+(i+1)+"商品价格");
            double a = k.nextDouble();
            s[i]=a;
        }
        for(y=0;y<s.length;y++) {
            System.out.print(s[y]+" ");
            g+=s[y];
        }
        System.out.println();
        System.out.println("商品总价为:"+g);
    }
}

